﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyNhaSach
{
    public partial class LapPhieuNhapSach : Form
    {
        public LapPhieuNhapSach()
        {
            InitializeComponent();
        }
        private void SetUpdgvLapPhieuNhapSachPhieuNhapSach()
        {
           
           
            
            dgvLapPhieuNhapSach.ColumnCount = 8;
            DataGridViewCellStyle columnHeaderStyle = new DataGridViewCellStyle();
            columnHeaderStyle.BackColor = Color.Aqua;
            columnHeaderStyle.Font = new Font("Vernada", 10, FontStyle.Bold);
            dgvLapPhieuNhapSach.ColumnHeadersDefaultCellStyle = columnHeaderStyle;

            //set columnHeadername
            dgvLapPhieuNhapSach.Columns[0].Name = "STT";
            dgvLapPhieuNhapSach.Columns[1].Name = "Mã Sách";
            dgvLapPhieuNhapSach.Columns[2].Name = "Tên Sách";
            dgvLapPhieuNhapSach.Columns[3].Name = "Thể Loại";
            dgvLapPhieuNhapSach.Columns[4].Name = "Tác Giả";
            dgvLapPhieuNhapSach.Columns[5].Name = "Số Lượng";
            dgvLapPhieuNhapSach.Columns[6].Name = "Số Lượng Tồn";
            dgvLapPhieuNhapSach.Columns[7].Name = "Số Lượng Tồn Mới";

            dgvLapPhieuNhapSach.Columns[2].ReadOnly = true;
            dgvLapPhieuNhapSach.Columns[3].ReadOnly = true;
            dgvLapPhieuNhapSach.Columns[4].ReadOnly = true;

           

            

        }
        private void PopulatedgvLapPhieuNhapSachPhieuNhapSach()
        {

        }

        private void LapPhieuNhapSach_Load(object sender, EventArgs e)
        {
            SetUpdgvLapPhieuNhapSachPhieuNhapSach();
        }
    }
}
